<?php

use think\facade\Route;

Route::rule("smscode", "sms/code", "POST");

Route::resource('user', 'User');


Route::rule("lists", "mall.lists/index");


//商品分类
Route::rule("subcategory/:id", "category/sub");

// 商品搜索
Route::rule("category/search/:cid", "Category/search");

//商品详情页
Route::rule("detail/:id","mall.detail/index");

//提交购物车
Route::resource("order","order.index");

